﻿using AutoMapper;
using Max.PH5_2103A.Shopping.TEntityFrame.Domain;
using Max.PH5_2103A.Shopping.TEntityFrame.DTO;

namespace Max.PH5_2103A.Shopping.TEntityFrame.API
{
    /// <summary>
    /// 
    /// </summary>
    public class AutomapperConfig:Profile
    {
        /// <summary>
        /// 创建映射规则
        /// </summary>
        public AutomapperConfig()
        {
            CreateMap<OrderInputDto, OrderMasterEntity>();
            CreateMap<OrderDetailInputDto, OrderDetailEntity>();
        }
    }
}
